<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">寻医问药</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/index">寻医问药</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                @if(session("user_id") != NULL)
                    <li><a href="javascript:;">{{session("user_name")}}，欢迎您</a></li>
                    <li><a href="/business_car">我的收藏</a></li>
                    <li><a href="/goods_order">我的预定</a></li>
                    <li><a href="/logout" style="color: red">退出</a></li>
                @endif
                @if(session("user_id") == NULL)
                    <li><a href="/login">请登录</a></li>
                    <li><a href="/register">还没有账号？请注册</a></li>
                @endif
            </ul>
        </div>
    </div>
</nav>